Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update shared and remove statsd usage #803

Merged
merged 2 commits into from
Oct 22, 2024
Merged

Conversation

Swatinem
Copy link
Contributor

This update is pulling in orjson usage for report de/serialization, and another likely perf improvement.

The update also necessitated removing usage of statsd shared.metrics. There is still helpers.metrics around which also re-exports statsd, and I left its cleanup for later.

The update necessitated removing usage of statsd `shared.metrics`.
There is still `helpers.metrics` around which also re-exports statsd, and I left its cleanup for later.
@Swatinem Swatinem requested a review from a team October 22, 2024 09:20
@Swatinem Swatinem self-assigned this Oct 22, 2024
Copy link

This PR includes changes to shared. Please review them here: codecov/shared@795495e...4b93700

Copy link

codecov bot commented Oct 22, 2024

Codecov Report

Attention: Patch coverage is 73.68421% with 5 lines in your changes missing coverage. Please review.

Project coverage is 97.99%. Comparing base (90ebfa7) to head (224cc26).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
tasks/sync_repos.py 72.22% 5 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #803      +/-   ##
==========================================
- Coverage   97.99%   97.99%   -0.01%     
==========================================
  Files         443      443              
  Lines       36513    36448      -65     
==========================================
- Hits        35780    35716      -64     
+ Misses        733      732       -1     
Flag Coverage Δ
integration 97.99% <73.68%> (-0.01%) ⬇️
unit 97.99% <73.68%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 95.83% <72.22%> (-0.01%) ⬇️
OutsideTasks 97.97% <ø> (-0.01%) ⬇️
Files with missing lines Coverage Δ
helpers/checkpoint_logger/__init__.py 94.79% <ø> (-0.21%) ⬇️
helpers/tests/unit/test_checkpoint_logger.py 99.58% <ø> (-0.05%) ⬇️
services/tests/test_report.py 100.00% <ø> (ø)
tasks/brolly_stats_rollup.py 100.00% <ø> (ø)
tasks/github_app_webhooks_check.py 100.00% <ø> (ø)
tasks/tests/unit/test_github_app_webhooks_check.py 100.00% <100.00%> (+0.98%) ⬆️
tasks/tests/unit/test_send_email_task.py 100.00% <ø> (ø)
tasks/sync_repos.py 97.52% <72.22%> (-0.05%) ⬇️

@codecov-staging
Copy link

codecov-staging bot commented Oct 22, 2024

Codecov Report

Attention: Patch coverage is 73.68421% with 5 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
tasks/sync_repos.py 72.22% 5 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #803      +/-   ##
==========================================
- Coverage   97.99%   97.99%   -0.01%     
==========================================
  Files         443      443              
  Lines       36513    36448      -65     
==========================================
- Hits        35780    35716      -64     
+ Misses        733      732       -1     
Flag Coverage Δ
integration 97.99% <73.68%> (-0.01%) ⬇️
unit 97.99% <73.68%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 95.83% <72.22%> (-0.01%) ⬇️
OutsideTasks 97.97% <ø> (-0.01%) ⬇️
Files with missing lines Coverage Δ
helpers/checkpoint_logger/__init__.py 94.79% <ø> (-0.21%) ⬇️
helpers/tests/unit/test_checkpoint_logger.py 99.58% <ø> (-0.05%) ⬇️
services/tests/test_report.py 100.00% <ø> (ø)
tasks/brolly_stats_rollup.py 100.00% <ø> (ø)
tasks/github_app_webhooks_check.py 100.00% <ø> (ø)
tasks/tests/unit/test_github_app_webhooks_check.py 100.00% <100.00%> (+0.98%) ⬆️
tasks/tests/unit/test_send_email_task.py 100.00% <ø> (ø)
tasks/sync_repos.py 97.52% <72.22%> (-0.05%) ⬇️

@codecov-qa
Copy link

codecov-qa bot commented Oct 22, 2024

Codecov Report

Attention: Patch coverage is 73.68421% with 5 lines in your changes missing coverage. Please review.

Project coverage is 97.99%. Comparing base (90ebfa7) to head (224cc26).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
tasks/sync_repos.py 72.22% 5 Missing ⚠️

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #803      +/-   ##
==========================================
- Coverage   97.99%   97.99%   -0.01%     
==========================================
  Files         443      443              
  Lines       36513    36448      -65     
==========================================
- Hits        35780    35716      -64     
+ Misses        733      732       -1     
Flag Coverage Δ
integration 97.99% <73.68%> (-0.01%) ⬇️
unit 97.99% <73.68%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 95.83% <72.22%> (-0.01%) ⬇️
OutsideTasks 97.97% <ø> (-0.01%) ⬇️
Files with missing lines Coverage Δ
helpers/checkpoint_logger/__init__.py 94.79% <ø> (-0.21%) ⬇️
helpers/tests/unit/test_checkpoint_logger.py 99.58% <ø> (-0.05%) ⬇️
services/tests/test_report.py 100.00% <ø> (ø)
tasks/brolly_stats_rollup.py 100.00% <ø> (ø)
tasks/github_app_webhooks_check.py 100.00% <ø> (ø)
tasks/tests/unit/test_github_app_webhooks_check.py 100.00% <100.00%> (+0.98%) ⬆️
tasks/tests/unit/test_send_email_task.py 100.00% <ø> (ø)
tasks/sync_repos.py 97.52% <72.22%> (-0.05%) ⬇️

Copy link

codecov-public-qa bot commented Oct 22, 2024

Codecov Report

Attention: Patch coverage is 73.68421% with 5 lines in your changes missing coverage. Please review.

Project coverage is 97.99%. Comparing base (90ebfa7) to head (224cc26).

✅ All tests successful. No failed tests found.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #803      +/-   ##
==========================================
- Coverage   97.99%   97.99%   -0.01%     
==========================================
  Files         443      443              
  Lines       36513    36448      -65     
==========================================
- Hits        35780    35716      -64     
+ Misses        733      732       -1     
Flag Coverage Δ
integration 97.99% <73.68%> (-0.01%) ⬇️
unit 97.99% <73.68%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
NonTestCode 95.83% <72.22%> (-0.01%) ⬇️
OutsideTasks 97.97% <ø> (-0.01%) ⬇️
Files Coverage Δ
helpers/checkpoint_logger/__init__.py 94.79% <ø> (-0.21%) ⬇️
helpers/tests/unit/test_checkpoint_logger.py 99.58% <ø> (-0.05%) ⬇️
services/tests/test_report.py 100.00% <ø> (ø)
tasks/brolly_stats_rollup.py 100.00% <ø> (ø)
tasks/github_app_webhooks_check.py 100.00% <ø> (ø)
tasks/tests/unit/test_github_app_webhooks_check.py 100.00% <100.00%> (+0.98%) ⬆️
tasks/tests/unit/test_send_email_task.py 100.00% <ø> (ø)
tasks/sync_repos.py 97.52% <72.22%> (-0.05%) ⬇️

@Swatinem Swatinem added this pull request to the merge queue Oct 22, 2024
Merged via the queue into main with commit ad3621c Oct 22, 2024
14 of 27 checks passed
@Swatinem Swatinem deleted the swatinem/update-shared branch October 22, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants